﻿using System;
using System.IO;
using UnityEngine;

// Token: 0x020002D9 RID: 729
[Serializable]
public class CharFileInfoCustomMale : global::CharFileInfoCustom
{
	// Token: 0x060011D4 RID: 4564 RVA: 0x000916E0 File Offset: 0x0008F8E0
	public CharFileInfoCustomMale() : base(Enum.GetNames(typeof(global::CharDefine.HairKindMale)).Length)
	{
		this.sex = 0;
		this.shapeValueFace = new float[global::CharDefine.cm_headshapename.Length];
		this.shapeValueBody = new float[global::CharDefine.cm_bodyshapename.Length];
		this.hairId = new int[this.hairKindNum];
		this.hairColor = new global::HSColorSet[this.hairKindNum];
		this.hairAcsColor = new global::HSColorSet[this.hairKindNum];
		this.MemberInitialize();
	}

	// Token: 0x060011D5 RID: 4565 RVA: 0x00091774 File Offset: 0x0008F974
	public new virtual void MemberInitialize()
	{
		base.MemberInitialize();
		this.matBeardId = 0;
		this.beardColor.SetDiffuseRGBA(Color.white);
		this.beardColor.hsvDiffuse.S = 1f;
		int[] array = new int[1];
		for (int i = 0; i < this.hairId.Length; i++)
		{
			this.hairId[i] = array[i];
			this.hairColor[i] = new global::HSColorSet();
			this.hairColor[i].hsvDiffuse = new global::HsvColor(30f, 0.5f, 0.7f);
			this.hairColor[i].hsvSpecular = new global::HsvColor(0f, 0f, 0.5f);
			this.hairColor[i].specularIntensity = 0.4f;
			this.hairColor[i].specularSharpness = 0.55f;
			this.hairAcsColor[i] = new global::HSColorSet();
			this.hairAcsColor[i].hsvDiffuse = new global::HsvColor(0f, 0.8f, 1f);
			this.hairAcsColor[i].hsvSpecular = new global::HsvColor(0f, 0f, 0.5f);
			this.hairAcsColor[i].specularIntensity = 0.4f;
			this.hairAcsColor[i].specularSharpness = 0.55f;
		}
		this.name = "俺";
		this.personality = 99;
	}

	// Token: 0x060011D6 RID: 4566 RVA: 0x000918D8 File Offset: 0x0008FAD8
	public override bool SaveSub(BinaryWriter bw)
	{
		bw.Write(this.matBeardId);
		this.beardColor.Save(bw);
		return true;
	}

	// Token: 0x060011D7 RID: 4567 RVA: 0x000918F4 File Offset: 0x0008FAF4
	public override bool LoadSub(BinaryReader br, int customVer, int colorVer)
	{
		this.matBeardId = br.ReadInt32();
		this.beardColor.Load(br, colorVer);
		return true;
	}

	// Token: 0x060011D8 RID: 4568 RVA: 0x00091910 File Offset: 0x0008FB10
	public override bool ModCheckSub()
	{
		return false;
	}

	// Token: 0x040017E2 RID: 6114
	public int matBeardId;

	// Token: 0x040017E3 RID: 6115
	public global::HSColorSet beardColor = new global::HSColorSet();
}
